import { Component, OnInit, Output, Input, EventEmitter } from '@angular/core';
import { PagesService } from 'services/pages.service';
declare var layui: any;
declare var layer: any;
declare var $: any;
@Component({
  selector: 'app-minmax',
  templateUrl: './minmax.component.html',
  styleUrls: ['./minmax.component.scss']
})
export class MinmaxComponent implements OnInit {


  constructor(public interfaceService: PagesService) { }

  @Output() private outer = new EventEmitter();
  @Input() module: any;

  ngOnInit() {
    
  }

  butLeft(){
    this.module.leftMax=false;
    this.module.rightMax=true;
    this.module.leftMin=true;
    this.module.rightMin=false;
    setTimeout(() => {
      $(window).resize();
    }, 10);
    
  }

  butCenter(){
    this.module.leftMax=false;
    this.module.rightMax=false;
    this.module.leftMin=false;
    this.module.rightMin=false;
    setTimeout(() => {
      $(window).resize();
    }, 10);
  }

  butRight(){
    this.module.leftMax=true;
    this.module.rightMax=false;
    this.module.leftMin=false;
    this.module.rightMin=true;
    setTimeout(() => {
      $(window).resize();
    }, 10);
  }

}
